package org.ykh.gmall.feign.item.clinet;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.ykh.gmall.feign.item.clinet.impl.ItemDegradeFeignClient;
import org.ykh.gmall.result.Result;

import java.util.Map;

@FeignClient(value = "gmall-item",fallback = ItemDegradeFeignClient.class)
public interface ItemFeignClient {

    /**
     * 商品详情查询
     * /api/item/{skuId}
     * @param skuId
     * @return
     */
    @GetMapping("/api/item/{skuId}")
    public Result item(@PathVariable Long skuId);
}
